Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selected rows in list should merge style with inline style #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jigish
Copy link

@jigish jigish commented Mar 8, 2019

List SelectedRowStyle should be merged with inline styles. This change does two things:

  1. Use ParseStyles for SelectedRowStyle.
  2. Merge modifiers in readStyle instead of inline styles clearing any default modifiers.

I'm not sure if it was intended for SelectedRowStyle to completely override the inline styles. If it was, please feel free to disregard and reject this pull request 😃

SelectedRowStyle should be merged with inline styles.
This change does two things:
1. Use ParseStyles for SelectedRowStyle
2. Merge modifiers in readStyle instead of inline styles clearing any
default modifiers.
@cjbassi
Copy link
Contributor

cjbassi commented Mar 8, 2019

Thanks for bringing this up. So I think I intentionally made the colors override instead of merge, but now I'm trying to figure out which is the better solution. I guess it would be good to make that an option for the user? But then we would probably have to add an argument to ParseStyles which might be a breaking change unless we do it with interface{}s. And then we have to figure out whether inline colors should be merged vs overridden like with the paragraph widget etc. So I'm not totally sure what the best method here is 😃 Probably best to get more opinions.

@cjbassi cjbassi force-pushed the master branch 2 times, most recently from 32a5f54 to 6d201dc Compare March 12, 2019 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants